<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>医生管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {

		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/phy/tDoctor/">医生列表</a></li>
		<shiro:hasPermission name="phy:tDoctor:edit"><li><a href="${ctx}/phy/tDoctor/form">医生添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="tDoctor" action="${ctx}/phy/tDoctor/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>医生姓名：</label>
				<form:input path="doctorName" htmlEscape="false" maxlength="32" class="input-small"/>
			</li>
			<li><label>所属机构：</label>
				<form:input path="tenantName" htmlEscape="false" maxlength="32" class="input-small"/>
			</li>
			<li><label>所属诊室：</label>
				<form:input path="officeName" htmlEscape="false" maxlength="32" class="input-small"/>
			</li>
			<li><label>职称级别：</label>
				<form:input path="rankName" htmlEscape="false" maxlength="32" class="input-small"/>
			</li>
<%--			<li><label>专家级别：</label>--%>
<%--				<form:input path="proRankName" htmlEscape="false" maxlength="32" class="input-small"/>--%>
<%--			</li>--%>
		</ul>
		<ul class="ul-form">
			<li><label>联系电话：</label>
				<form:input path="mobile" htmlEscape="false" maxlength="32" class="input-medium"/>
			</li>
			<li><label>咨询开关：</label>
				<form:select path="onlineStatus" class="input-small">
					<form:option value="" label="全部"/>
					<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>开通挂号：</label>
				<form:select path="bookStatus" class="input-small">
					<form:option value="" label="全部"/>
					<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<shiro:hasPermission name="phy:sys:id"><th>id</th></shiro:hasPermission>
				<th>医生姓名</th>
				<th>所属机构</th>
				<th>所属诊室</th>
				<th>职称</th>
<%--				<th>专家级别</th>--%>
				<th>专家</th>
				<th>联系电话</th>
				<th>咨询开关</th>
				<th>开通挂号</th>
				<th>离职</th>
				<th>更新时间</th>
				<th>更新者</th>
				<th>备注信息</th>
				<shiro:hasPermission name="phy:tDoctor:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tDoctor">
			<tr>
				<shiro:hasPermission name="phy:sys:id">
				<td>
						${tDoctor.id}
				</td>
				</shiro:hasPermission>
				<td><a href="${ctx}/phy/tDoctor/form?id=${tDoctor.id}">
					${tDoctor.doctorName}
				</a></td>
				<td>
						${tDoctor.tenant.tenantName}
				</td>
				<td>
						${tDoctor.office.officeName}
				</td>
				<td>
						${tDoctor.tRank.rankName}
				</td>
<%--				<td>--%>
<%--						${tDoctor.tProRank.rankName}--%>
<%--				</td>--%>
				<td>
						${fns:getDictLabel(tDoctor.proStatus, 'shi_for', '')}
				</td>
				<td>
					${tDoctor.mobile}
				</td>
				<td>
						${fns:getDictLabel(tDoctor.onlineStatus, 'yes_no', '')}
				</td>
				<td>
						${fns:getDictLabel(tDoctor.bookStatus, 'yes_no', '')}
				</td>
				<td>
						${fns:getDictLabel(tDoctor.dimission, 'yes_no', '')}
				</td>
				<td>
					<fmt:formatDate value="${tDoctor.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
						${tDoctor.updateBy.name}
				</td>
				<td>
					${tDoctor.remarks}
				</td>
				<shiro:hasPermission name="phy:tDoctor:edit"><td>
    				<a href="${ctx}/phy/tDoctor/form?id=${tDoctor.id}">修改</a>
					<a href="${ctx}/phy/tDoctor/delete?id=${tDoctor.id}" onclick="return confirmx('确认要删除该医生吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
